package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.vo.Attr;
import com.atguigu.gulimall.product.entity.vo.SkuItemSaleAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SkuSaleAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * sku销售属性&值
 *
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-26 22:16:12
 */
public interface SkuSaleAttrValueService extends IService<SkuSaleAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 批量保存sku销售属性信息
     * @author 胡菜鸡
     * @date 2021/12/27 9:34
     */
    boolean saveSkuAttrInfo(List<SkuSaleAttrValueEntity> skuAttrEntities);

    /**
     * 根据 spuId 查询出对应的所有销售组合信息
     * @author 胡菜鸡
     * @date 2022/1/13 11:55
     */
    List<SkuItemSaleAttrVo> getSaleAttrsBySpuId(Long spuId);
}

